package csc.fresher.dao;

import java.sql.Timestamp;
import java.util.List;

//import csc.fresher.entity.SavingTransaction;
import csc.fresher.entity.Transaction;

public interface TransactionDao {
	public long createTransaction(Transaction transaction);
	public void removeTransaction(long txID, long adminID, long accountID);
	public void approveTransaction(long txID, long adminID, long accountID);
	public void denyTransaction(long txID, long adminID, long accountID);
	public List<Transaction> searchTransactionByAccountID(long accountID);
	public List<Transaction> getListTransactionsByAccountID(long accountID, int startIndex, int maxReturn);
	public List<Transaction> searchTransactionByCustomerCardID(long customerCardID);
	public List<Transaction> searchTransactionByCustomerCardIDInGivenPeriod(long customerCardID, Timestamp beginDate, Timestamp endDate);
	public List<Transaction> getAllTransactionsByAccountIDInGivenPeriod(long accountID, Timestamp beginDate, Timestamp endDate);
	public List<Transaction> getListTransactionsByAccountIDInGivenPeriod(long accountID, Timestamp beginDate, Timestamp endDate, int startIndex, int maxReturn);
}
